<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-12 10:49:18
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-12 11:10:58
 $ @FilePath: \st-html.github.io\src\aaa012\a063背景图.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible"
              content="IE=edge">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            div {
                background-image: url(../img/demo.png);
                /* background-image: url('background.jpg'); */
                /* 默认的背景图是一个链接的形式存在 */
                width: 300px;
                height: 300px;
                /* 这里，如果宽高和图片的宽高不符合，那么会直接平铺图片 */
            }
        </style>
    </head>

    <body>
        <p>我是背景图片</p>
        <div>测试图片</div>

    </body>

</html>